<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<tiles:insertDefinition name="html.bbs.sight.introduce">
	<tiles:putAttribute name="boardId" value="${bid}"></tiles:putAttribute>
</tiles:insertDefinition>
<div class="f_listbutdiv">
	<p class="w100 fl">
		<input class="but88" type="button" onclick="javascript:window.open('<c:url value="/bbs/nt.do?bid=${bid}"/>')" value="我要发帖">
	</p>
	<div class="f_listbutsent" style="float:left;text-align:left">
		<a class="f_listbutsenta" href="<c:url value='/bbs/bi.do?bid=${board.boardId}'/>">全部帖子</a>
		<c:forEach var="keyword" items="${board.keywords}" varStatus="status1">
			<a href="<c:url value='/bbs/bi.do?bid=${board.boardId}&keywordid=${keyword.keywordid}'/>">
				<c:out value="${keyword.title}"></c:out>
			</a>
		</c:forEach>
	</div>
</div>
<div class="f_listoperate">
	<table width="100%" cellspacing="0" cellpadding="0" border="0">
	<tbody>
		<tr valign="middle" align="center">
			<td align="left">
				<font class="s705">主题</font>
			</td>
			<td width="10%"> 作者</td>
			<td width="10%">回复/查看</td>
			<td width="20%">最后回复 </td>
		</tr>
	</tbody>
	</table>
</div>
<table class="f_listtable" cellspacing="0" cellpadding="0" border="0">
<tbody>
	<c:forEach var="topic" items="${page.items}"  varStatus="status">
		<tr valign="middle" align="center">
			<td width="60%" align="left">
				<c:choose>
					<c:when test="${topic.elite == 1}">
						<span class="f_hot"></span>
					</c:when>
					<c:when test="${topic.top == 1}">
						<fmt:message key="html.bbs.topic.top"></fmt:message>
					</c:when>
					<c:when test="${topic.commend == 1}">
						<fmt:message key="html.bbs.topic.commend"></fmt:message>
					</c:when>
					<c:otherwise>
						<span class="f_normal"></span>
					</c:otherwise>
				</c:choose>
				<a class="lH33" href="<c:url value="/bbs/vt.do?tid=${topic.topicId}"/>">
					<c:out value="${topic.htmlTitle}"></c:out>
				</a>
			</td>
			<td width="10%">
				<ms:user type="nickname" link="true" userid="${topic.userid}" nickname="${topic.nickname}"  style=""></ms:user>
				<br>
				<font class="s666"><fmt:formatDate value="${topic.createTime}" pattern="yyyy/MM/dd HH:mm"/></font>
			</td>
			<td width="10%">
				<c:out value="${topic.threadAmount}"></c:out>/<c:out value="${topic.clickAmount}"></c:out>
			</td>
			<td width="20%">
				<font class="s666"><fmt:formatDate value="${topic.lastThreadTime}" pattern="yyyy/MM/dd HH:mm"/></font>
			</td>
		</tr>
	</c:forEach>
</tbody>
</table>
<div class="f_listpage">
	<div class="pagediv">
		<jsp:include page="/common/pager2.jsp"></jsp:include>
	</div>
</div>